package icss;

public class Vehicle {
	private String carId;
	private int speed;
	private double size;
	
	public void speedUp(){
		speed++;
	}
	
	public void speedDown(){
		speed--;
	}
	
	public void updateCardId(String carId){
		this.carId = carId;
	}
	
	public double querySize(){
		return size;
	}
	
	public Vehicle(){
		carId = "xx1234";
		speed = 100;
		size = 100;
	}
	
	public Vehicle(String carId,int speed,double size){
		this.carId = carId;
		this.speed = speed;
		this.size = size;
	}
	
	public void show(){
		System.out.println(carId + " " + speed + " " + size);
	} 
}
